package org.u2ml.stack.web.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Component;

@Component
@Path("/status")
public class StatusResource {
	private static final String SERVER_IS_ALIVE = "Server is alive.";

	@GET
	@Produces(MediaType.TEXT_PLAIN)
	public String get() {
		return SERVER_IS_ALIVE;
	}
}